package com.tduck.cloud.common.constant;

public class UipConstant {

    /**
     * uip协同服务-告警记录app-key
     */
    public static final String APP_KEY = "6824ac9125a448bfbeed103a810367b8";
    public static final String APP_CODE = "102fa412-9e8b-41d2-b1b8-213b0d3b204d";

    private static final String TENANT_ID = "qt7hoqq6";
    public static final String GATEWAY_HOST = "https://yonbip.diwork.com/iuap-api-gateway";
    /**
     * uip协同服务-告警记录app密钥
     */
    public static final String APP_SECRET = "25ab864b9a7f425b91c8b23c2e866888";
    /**
     * uip开放api url
     */
    public static final String TOKEN_HOST = "https://yonbip.diwork.com/iuap-api-auth";
    /**
     * 员工列表网址
     */
    public static final String STAFF_LIST_URL = GATEWAY_HOST + "/yonbip/digitalModel/staff/list?access_token=";
    /**
     * 获得令牌url
     */
    public static final String GET_TOKEN_URL = TOKEN_HOST + "/open-auth/selfAppAuth/getAccessToken";
    /**
     * 发送信息url
     */
    public static final String SEND_ALARM_MESSAGE_URL = GATEWAY_HOST + "/yonbip/uspace/rest/openapi/idempotent/alarm/notify/push?access_token=";

    /**
     * 发送工作通知
     */
    public static final String SEND_NOTIFY_MESSAGE_URL =  GATEWAY_HOST + "/yonbip/uspace/notify/share?access_token=";
    /**
     * 调用uip开放平台接口所需令牌
     */
    public static final String TOKEN_KEY = "uip:token:key:";
    /**
     * 成功代码
     */
    public static final String SUCCESS_CODE = "200";
    /**
     * 根据uip跳转页面url中附带的code获取友互通id
     */
    public static final String GET_YHTID_URL =  GATEWAY_HOST + "/yonbip/uspace/freelogin/base_info_by_code";
    /**
     * 分页获取uip平台员工列表
     */
    public static final String GET_STAFF_URL =  GATEWAY_HOST + "/yonbip/digitalModel/staffQry/getStaff?access_token=";

    /**
     * 根部门id
     */
    public static final String ROOT_ORG_ID = "2308297821294849";

    /**
     * 查询组织树
     */
    public static final String QUERY_ORG_TREE =  GATEWAY_HOST + "/yonbip/digitalModel/admindept/tree?access_token=";

    /**
     * 获取员工详细信息url
     */
    public static final String GET_HR_STAFF_DETAIL_URL =  GATEWAY_HOST + "/yonbip/hrcloud/HRCloud/getStaffDetail?access_token=";

    /**
     * 职位详细信息url
     */
    public static final String POSITION_DETAIL_URL = GATEWAY_HOST + "/yonbip/digitalModel/position/detail";


}
